<?php
/**
 * @author ykm 2016/5/6
 * @describe 发票 相关请求接口类
 */

class erpapi_shop_request_invoice extends erpapi_shop_request_abstract {

    #获取发票抬头
    public function getOrderInvoice($order_bn) {
        if(!$order_bn) return false;
        $param = array(
            'tid' => $order_bn,
        );
        $title = '获取订单(' . $order_bn . ')发票抬头';
        $result = $this->__caller->call(SHOP_GET_TRADE_INVOICE_RPC, $param, array(), $title, 5, $order_bn);
        if($result['data']) {
            $result['data'] = json_decode($result['data'], true);
        }
        return $result;
    }
}